cmake_minimum_required(VERSION 3.10)

set(PROJECT_NAME lib_test)

project(${PROJECT_NAME})

# 确保项目使用C++11标准，如果编译器不支持该标准则报错。
# 使用C++11标准可以获取更好的性能和更丰富的库支持。
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/../include/log
    ${CMAKE_CURRENT_SOURCE_DIR}/../include/common
)

add_executable(${PROJECT_NAME}
        ./log_test.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/../log/log.cpp
    )



